package top.ucat.boots.example.rocketmq.provider.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import top.ucat.boots.example.rocketmq.provider.service.SendService;

/**
 * @Auther: Jun
 * @Date: 2019/8/21 15:30
 * @Description:
 */
@RestController
@RequestMapping("test")
public class TestController {

    @Autowired
    private SendService sendService;

    @GetMapping
    public Object testSend() {
        for (int i = 0; i < 10; i++) {
            sendService.send(""+i);
        }

        return null;
    }
}
